import request from "@/utils/request";

// 用户列表
export function getUserList(params: any) {
  return request.get(
    { url: "/user.user/lists", params },
    { ignoreCancelToken: true }
  );
}

// 用户详情
export function getUserDetail(params: any) {
  return request.get({ url: "/user.user/detail", params });
}
/**得到履历列表 */
export function getUserCurriculumVitaes(params: any) {
  return request.get({ url: "/user.user/CurriculumVitaes", params });
}
/**添加/编辑履历列表 */
export function EditCurriculumVitaes(params: any) {
  return request.post({ url: "/user.user/EditCurriculumVitaes", params });
}
export function DelCurriculumVitae(params: any) {
  return request.post({ url: "/user.user/DelCurriculumVitaes", params });
}
/*得到学历列表*/
export function getEducations(params: any) {
  return request.get({ url: "/user.user/Educations", params });
}
export function EditEducations(params: any) {
  return request.post({ url: "/user.user/EditEducations", params });
}
export function DelEducations(params: any) {
  return request.post({ url: "/user.user/DelEducations", params });
}
/*得到学位列表*/
export function getDegrees(params: any) {
  return request.get({ url: "/user.user/Degrees", params });
}
export function EditDegrees(params: any) {
  return request.post({ url: "/user.user/EditDegrees", params });
}
export function DelDegrees(params: any) {
  return request.post({ url: "/user.user/DelDegrees", params });
}
/*得到职务列表*/
export function getPostions(params: any) {
  return request.get({ url: "/user.user/Postion", params });
}
export function EditPostions(params: any) {
  return request.post({ url: "/user.user/EditPostion", params });
}
export function DelPostions(params: any) {
  return request.post({ url: "/user.user/DelPostion", params });
}
/*得到职务层级列表*/
export function getPostionGrades(params: any) {
  return request.get({ url: "/user.user/PostionGrade", params });
}
export function EditPostionGrades(params: any) {
  return request.post({ url: "/user.user/EditPostionGrade", params });
}
export function DelPostionGrades(params: any) {
  return request.post({ url: "/user.user/DelPostionGrade", params });
}
/*得到警衔列表*/
export function getPoliceRanks(params: any) {
  return request.get({ url: "/user.user/PoliceRank", params });
}
export function EditPoliceRank(params: any) {
  return request.post({ url: "/user.user/EditPoliceRank", params });
}
export function DelPoliceRank(params: any) {
  return request.post({ url: "/user.user/DelPoliceRank", params });
}
/*得到警证列表*/
export function getPoliceCards(params: any) {
  return request.get({ url: "/user.user/PoliceCard", params });
}
export function EditPoliceCards(params: any) {
  return request.post({ url: "/user.user/EditPoliceCard", params });
}
export function DelPoliceCards(params: any) {
  return request.post({ url: "/user.user/DelPoliceCard", params });
}
/*得到年度考核列表*/
export function getAssessments(params: any) {
  return request.get({ url: "/user.user/Assessment", params });
}
export function EditAssessment(params: any) {
  return request.post({ url: "/user.user/EditAssessment", params });
}
export function DelAssessment(params: any) {
  return request.post({ url: "/user.user/DelAssessment", params });
}
/*得到奖励列表*/
export function getRewards(params: any) {
  return request.get({ url: "/user.user/Reward", params });
}
export function EditReward(params: any) {
  return request.post({ url: "/user.user/EditReward", params });
}
export function DelReward(params: any) {
  return request.post({ url: "/user.user/DelReward", params });
}
/*得到奖惩列表*/
export function getPunishs(params: any) {
  return request.get({ url: "/user.user/Punish", params });
}
export function EditPunish(params: any) {
  return request.post({ url: "/user.user/EditPunish", params });
}
export function DelPunish(params: any) {
  return request.post({ url: "/user.user/DelPunish", params });
}
// 用户编辑
export function userEdit(params: any) {
  return request.post({ url: "/user.user/edit", params });
}

// 用户编辑
export function adjustMoney(params: any) {
  return request.post({ url: "/user.user/adjustMoney", params });
}
